package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.entity.CoursePub;

import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-17
 */
public interface CoursePubService extends IService<CoursePub> {

    /**
     * 课程预览-教学机构
     * @param courseId
     * @param companyId
     * @return
     */
    Map<String, Object> preview(Long courseId, Long companyId);


    /**
     * 课程发布
     * @param courseId
     * @param companyId
     * @param isResend
     */
    void publish(Long courseId, Long companyId,boolean isResend);

}
